package com.point.moments.user.biz.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum SexEnum {
    WOMAN(0),
    MAN(1);

    private final Integer value;

    public static boolean isValid(Integer value){
        for(SexEnum loginTypeEnum : SexEnum.values()){
            if(value.equals(loginTypeEnum.getValue())){
                return true;
            }
        }
        return false;
    }
}
